#!/bin/bash
PWD=$(dirname "$(realpath "$0")")
#echo $PWD
my_ip=`wget -qO - http://ipecho.net/plain`
git pull
#echo ${my_ip}
if test -z "${my_ip}"
then
    echo "空" > ${PWD}/ip.txt
    exit 0
fi
echo "${my_ip} home1.v6.army" > ${PWD}/ip.txt
echo "${my_ip} gllj.f3322.net" >> ${PWD}/ip.txt
echo "${my_ip} q1551646b3.iask.in" >> ${PWD}/ip.txt
echo "${my_ip} luozhou.v6.rocks" >> ${PWD}/ip.txt
echo "${my_ip}" > ${PWD}/rawip.txt
cd ${PWD} && git add * && git commit -m "testing" && git push -f 
